import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI, { Message } from 'element-ui'
import './plugins/element.js'
import axios from 'axios'
Vue.use(ElementUI)


Vue.prototype.$axios = axios
axios.defaults.baseURL='http://localhost:3000';//设置基址
Vue.config.productionTip = false
Vue.prototype.$message = Message

new Vue({
  router,
  beforeCreate(){
    // 安装全局事件总线
    Vue.prototype.$bus = this // 以vm作为中转
  },
  render: h => h(App)
}).$mount('#app')
